<template>
  <div class="playlist-detail">
    <h2>我的歌单</h2>
    <ul class="song-list">
      <li v-for="(song, index) in songs" :key="index">
        {{ song.name }} - {{ song.artist }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ['songs']
}
</script>

<style scoped>
.playlist-detail {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  overflow-y: auto;
  z-index: 20;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.song-list {
  list-style: none;
  padding: 0;
}

.song-list li {
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.song-list li:hover {
  background: #222;
}
</style>